#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.65])
AC_INIT([gx], [0.01], [stesenchina@gmail.com])
AC_CONFIG_SRCDIR([.])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE(gx, 0.01)
AC_CONFIG_FILES([Makefile])

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
AC_CHECK_LIB([pthread], [main])

# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h errno.h sys/stat.h pthread.h stdio.h dirent.h ctype.h pwd.h grp.h sys/signal.h net/if.h sys/sendfile.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_C_INLINE
AC_TYPE_INT64_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([inet_ntoa memmove memset select socket strcasecmp strchr strdup strerror strncasecmp strrchr strstr])

AC_OUTPUT
